import Vue from 'vue'
import Vuex from 'vuex'

import getters from './getters.js'
import app from './modules/app.js' // 设置左侧导航的折叠与展开状态
import settings from './modules/settings.js' // 头部的title和logo
import user from './modules/user.js' // 用户信息

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user
  },
  // 统一导出模板中的数据
  getters
})

export default store
